home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 138
/
Volume 138 Aug 19 2011 - Damaged.iso
/
Games
/
guardian_angel.swf
/
scripts
/
DefineSprite_372
/
frame_2
/
DoAction.as
Wrap
Text File
|
2011-08-19
|
1KB
|
64 lines
if(eval("../:laufx") < myx)
{
if(- "30" < stepx)
{
stepx -= "0.5";
}
}
else if(stepx < "30")
{
stepx += "0.5";
}
stepy += "1.5";
if(myy1 < myy)
{
stepy = - "30";
}
if(myx1 + "480" * "2" < myx)
{
stepx = - "10";
}
if(myx < myx1 - "480" * "2")
{
stepx = "10";
}
if(myx - "120" < eval("../:laufx") and eval("../:laufx") < myx + "120" and myy - "220" < eval("../:laufy") and eval("../:laufy") < myy + "20")
{
if(eval("../:fallen") == "1" and eval("../:laufy") < myy - "130")
{
stepx = - stepx;
set("../:stepy",- "30");
set("../:hits",eval("../:hits") - "1");
tellTarget("flash")
{
gotoAndPlay(2);
}
}
else if(eval("../:protect") < "0")
{
set("../:death","1");
}
}
myy += stepy;
myx += stepx;
_X = myx;
_Y = myy;
if(death == "1")
{
gotoAndPlay(4);
}
if(eval("../:laufx") < myx)
{
tellTarget("enemy")
{
gotoAndStop(1);
}
}
if(myx < eval("../:laufx"))
{
tellTarget("enemy")
{
gotoAndStop(2);
}
}